<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><{$item.title}>_<{$category.title}>_易购GO</title>
<meta name="keywords" content="<{$item.title}>" />
<meta name="description" content="<{$item.title}>" />
<{assign var="layout" value="2"}>
<{include file="_meta.html"}>
</head>

<body>
<{include file="_top.html"}>
<div id="Container">
	<!-- header -->
	<div id="Header" class="clearfix">
		<{include file="_header.html"}>
		<{navSub cid=$item.cid}>
	</div>
	<!-- /header -->
	
	<!-- body -->
	<div id="Body" class="clearfix">
		<!-- main -->
		<div id="Wrapper">
			<div id="Main">
				<!-- 导航模块 -->
				<div class="com_title">
					<div class="com_title_in">
						<div class="com_title_inner">
							<h2 style="font-weight: normal;">
							<b>当前位置：</b>
							<a href="<{$domain}>">站点首页</a> &gt; <{$location}>&nbsp;
							<a href="<{urlShop nick=$shop.nick}>"><{$shop.nick}></a> &gt; 商品详情：
							</h2>
						</div>
					</div>
				</div>
				
				<!-- 商品信息 -->
				<div class="content goinfo">
					<h1><{$item.title}></h1>
					<div class="gsin">
						<div class="img"><div id="KinSlideshow"><img src="<{urlPhoto url=$item.pic_url|cat:'_310x310.jpg'}>" alt="<{$item.title}>" /></div></div>
						<div class="jtxx">
							<p><span class="price">淘宝价格：<b><{math equation="a" a=$item.price format="￥%.2f"}></b></span></p>
							<p><span class="price2">可返利：<b style="font-size:12px;"><{itemPrice price=$convert.commission}></b></span></p>
							<p><span class="fare">商品运费：<em>平邮:￥<{$item.post_fee}></em>&nbsp;&nbsp;<em>快递:￥<{$item.express_fee}></em>&nbsp;&nbsp;<em>EMS:￥<{$item.ems_fee}></em></span></p>
							<p><span class="trade">30天售出：<b><{$convert.volume}></b> 件</span>&nbsp;<a href="#pj" id="pjnum" style="color:#FF3300; font-family:Georgia;"></a></p>
							<p>掌柜名称：<a href="<{urlShop nick=$shop.nick}>"><{$shop.nick}></a>&nbsp;<a href="http://amos.im.alisoft.com/msg.aw?v=2&amp;uid=<{$shop.nick}>&amp;site=cntaobao&amp;s=2&amp;charset=utf-8" target="_blank"><img border="0" alt="点击这里给我发消息" src="http://amos.im.alisoft.com/online.aw?v=2&amp;uid=<{$shop.nick}>&amp;site=cntaobao&amp;s=1&amp;charset=utf-8"></a></p>
							<p>所在地区：<{$convert.item_location}></p>
							<div class="share clearfix">
								<!-- Baidu Button BEGIN -->
								    <div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
								        <span class="bds_more">分享到：</span>
								        <a class="bds_qzone"></a>
								        <a class="bds_tsina"></a>
								        <a class="bds_tqq"></a>
								        <a class="bds_renren"></a>
										<a class="shareCount"></a>
								    </div>
								<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=605774" ></script>
								<script type="text/javascript" id="bdshell_js"></script>
								<script type="text/javascript">
									document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?t=" + new Date().getHours();
								</script>
								<!-- Baidu Button END -->
							</div>
							<p class="buy"><script type="text/javascript">document.writeln("<a class=\"btnBuy\" target=\"_blank\" href=\""+"<{$convert.click_url}>"+"<{$user.id}>"+"\">"+"<img src=\"<{$domain}>images/toitem.gif\" />"+"</a>");</script></p>
							<p class="buy"><a href="<{urlShop nick=$shop.nick}>" target="_blank"><img src="<{$domain}>images/toshop.gif"></a></p>
						</div>
					</div>
					<div class="sp"></div>
				</div>
				<!-- /商品信息 -->
				
				<!-- 商品内容 -->
				<div id="itemCon" class="content">
					<div class="other_menu">
						<ul class="cmenu">
							<li class="this" id="tab_1"><a>商品详情</a></li>
							<li id="tab_2"><a>评价详情</a></li>
						</ul>
					</div>
					<a name="pj"></a>
					
					<!-- 属性信息 -->
					<div id="con_1" class="con">
						<div class="props">
							<ul class="clearfix">
								<{foreach key=k item=v from=$item.props_name}>
								<li><{$v}></li>
								<{/foreach}>
							</ul>
						</div>
						<{dynamic}>
						<{itemInfo iid=$iid}>
						<{/dynamic}>
					</div>
					
					<!-- 评价信息 -->
					<div id="con_2" class="con" style="display:none">
						<div class="pjdf">
							<div class="left">
								<ul>
									<li class="li1">店铺的“宝贝与描述相符”得分</li>
									<li class="li2"><font class="ajaxpjdf">4.6</font> 分 <img src="<{$domain}>images/score/45.gif" /></li>
									<li class="li3">(共打分 <font id="pjdfnum" color="#FF6600">10001</font> 次)</li>
								</ul>
							</div>
							<div class="right">
								<ul>
									<li class="li1"><div id="biaochi"><font class="ajaxpjdf">4.6</font></div></li>
									<li class="li2"></li>
									<li class="li3"></li>
								</ul>
							</div>
						</div>
						<div class="pj_a"><div class="pj_b">评论</div><div class="pj_c">评价人</div></div>
						<ul id="comment" class="clearfix"></ul>
						<div class="page clearfix"></div>
					</div>
				</div>
				<!-- /商品内容 -->
			</div>
		</div>
		<!-- /main -->
		
		<!-- sidebar -->
		<div id="SideBar"><{include file="_item-sidebar.html"}></div>
		<!-- /sidebar -->
	</div>
	<!-- /body -->
	
	<!-- footer -->
	<div id="Footer" class="clearfix"><{include file="_footer.html"}></div>
	<!-- /footer -->
</div>
</body>
</html>

<!-- JS -->
<{JS}>
<script type="text/javascript">
$(function() {
	/// 取得评论列表
	function getComment(page) {
		$.post("<{url r='item/comment'}>", {
				'user_id':"<{$shop.user.user_id}>",
				'num_iid':"<{$item.num_iid}>",
				'page':page
			}, function(data) {
				var commmentArr=data.split('@');
				var biaochi = parseInt(commmentArr[1]/5*380);
				$("#biaochi").css("margin-left",biaochi+"px");
				$(".ajaxpjdf").html(commmentArr[1]);
				$("#pjdfnum").html(commmentArr[2]);
				$("#pjnum").html("(已有"+commmentArr[2]+"人评论)");
				$("#comment").fadeOut().html(commmentArr[4]).fadeIn();
				$(".page").html(commmentArr[5]);
				$("#page_nav a").unbind().click(function() {
					var page = $(this).attr("p");
					getComment(page);
					return false;
				});
		});
	}
	
	/// 切换TAB
	function tabChange(tab) {
		$(".con").hide();
		$(".cmenu li").removeClass("this");
		$("#con_"+$("#"+tab).attr("id").substr(4, 1)).show();
		$("#"+tab).addClass("this");
	}
	
	///
	$("#con_1 img").lazyload({
		effect : "fadeIn"
	});
	
	///
	getComment(1);
	
	///
	$(".cmenu li").click(function() {
		tabChange($(this).attr("id"));
	});
	
	///
	$("#pjnum").click(function() {
		tabChange("tab_2");
	});
});
</script>
